package Myextends;

import java.io.*;
public class WriteUTF8html {
    public static void main(String[] args)throws Exception
    {
        FileOutputStream s=new FileOutputStream("demo.html");
        String sss="<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\" /></head><body><h1>你好</body></html>";        
        //s.write(sss.getBytes("UTF8"));
        s.write(sss.getBytes());
        s.close();
    }
}
